function [ x_new ] = FourPointAvarage( x,omega )
% Input:
% x = [i-1 i i+1 i+2] (the four adjacency points)
% omega is the tension parameter
%-----------------------------------------------------------------
% Nir Sharon 2-05-12
%-----------------------------------------------------------------

x_new = ((x(2)+x(3))*(omega+1/2))-((x(1)+x(4))*omega);
end